package com.yiyuplatform.config;

import lombok.Getter;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: 大龙
 * \* Date: 2021/11/13
 * \* Time: 12:58
 * \* Description:
 * \
 */
@Getter
public enum ResponseMsgConfig {
    CodeIsEmpty(1001, "code为空"),
    RequestError(1002, "请求异常"),
    SignatureError(1003, "签名校验错误"),
    DataNotExist(1010, "查询数据不存在"),
    PermissionDenied(1017, "权限不足"),
    TokenError(1085, "token错误");

    private Integer code;
    private String msg;

    ResponseMsgConfig(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
